package com.dnndo.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 文创合作实体类
 */
@Data
@TableName("cooperation")
public class Cooperation {

    /**
     * 主键，文创合作记录唯一标识
     */
    @TableId(value = "cooperate_id")
    private Integer cooperateId;

    /**
     * 来源IP
     */
    @TableField("ip")
    private String ip;

    /**
     * 合作方名称
     */
    @TableField("cooperate_name")
    private String cooperateName;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 标记：0-未联系，1-已联系
     */
    @TableField("contact")
    private Integer contact;

    /**
     * 详细内容
     */
    private String describ;

    /**
     * 记录时间
     */
    @TableField("created_at")
    private Date createdAt;

    @Override
    public String toString() {
        return "Cooperation{" +
                "cooperateId=" + cooperateId +
                ", ip='" + ip + '\'' +
                ", cooperateName='" + cooperateName + '\'' +
                ", userId=" + userId +
                ", contact=" + contact +
                ", describe='" + describ + '\'' +
                ", createdAt=" + createdAt +
                '}';
    }
}
